let solc = require('solc')
let fs = require('fs')
const {bytecode} = require("./compile");
let file = fs.readFileSync('E:\\lotter-pro\\contract\\lottery.sol', 'utf-8')
//console.log(file.toString())
let res = solc.compile(file, 1)
//console.log(res)
let myinterface1 =  res['contracts'][':lottery']['interface']
let mybytecode =  res['contracts'][':lottery']['bytecode']
//console.log('myinterface1', myinterface1)
//console.log('bytecode',mybytecode)
module.exports = {
    interface1:myinterface1,
    bytecode:mybytecode
}